home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 June: Reference Library / Dev.CD Jun 96 RL / Dev.CD Jun 96 RL.toast / Technical Documentation / develop / develop Issue 12 / develop Issue 12 code / Apple Events and Objects.sea / Apple Events and Objects / UAppleObject.h < prev    next >
MacBinary  |  1992-10-16  |  11.9 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Fri Oct 16 18:27:47 1992, modified Fri Oct 16 18:27:47 1992, creator 'MPS ', type ASCII, 11439 bytes "UAppleObject.h" , at 0x2d2f 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 55 41 70 70 6c 65 | 4f 62 6a 65 63 74 2e 68 |..UApple|Object.h|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 2c af 00 | 00 01 ac a7 04 f2 63 a7 |.....,..|......c.|
|00000060| 04 f2 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..c.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 38 07 00 00 |........|....8...|
|00000080| 2f 2f 20 55 41 70 70 6c | 65 4f 62 6a 65 63 74 2e |// UAppl|eObject.|
|00000090| 68 0d 2f 2f 20 62 79 20 | 45 72 69 63 20 42 65 72 |h.// by |Eric Ber|
|000000a0| 64 61 68 6c 0d 2f 2f 20 | 41 70 70 6c 65 4c 69 6e |dahl.// |AppleLin|
|000000b0| 6b 3a 20 42 45 52 44 41 | 48 4c 0d 2f 2f 20 49 6e |k: BERDA|HL.// In|
|000000c0| 74 65 72 67 65 74 3a 20 | 65 72 69 63 5f 62 65 72 |terget: |eric_ber|
|000000d0| 64 61 68 6c 40 74 61 6c | 69 67 65 6e 74 2e 63 6f |dahl@tal|igent.co|
|000000e0| 6d 0d 2f 2f 20 4d 61 79 | 20 58 58 2c 20 31 39 39 |m.// May| XX, 199|
|000000f0| 32 0d 2f 2f 0d 2f 2f 20 | 43 6f 70 79 72 69 67 68 |2.//.// |Copyrigh|
|00000100| 74 20 a9 20 31 39 39 32 | 20 45 72 69 63 20 4d 2e |t . 1992| Eric M.|
|00000110| 20 42 65 72 64 61 68 6c | 0d 2f 2f 20 41 6c 6c 20 | Berdahl|.// All |
|00000120| 72 69 67 68 74 73 20 72 | 65 73 65 72 76 65 64 2e |rights r|eserved.|
|00000130| 0d 2f 2f 0d 2f 2f 20 4c | 49 43 45 4e 53 45 0d 2f |.//.// L|ICENSE./|
|00000140| 2f 0d 2f 2f 20 55 41 70 | 70 6c 65 4f 62 6a 65 63 |/.// UAp|pleObjec|
|00000150| 74 20 69 73 20 70 72 6f | 76 69 64 65 64 20 75 6e |t is pro|vided un|
|00000160| 64 65 72 20 74 68 65 20 | 65 67 6f 2d 77 61 72 65 |der the |ego-ware|
|00000170| aa 20 73 79 73 74 65 6d | 2e 20 20 49 66 20 79 6f |. system|. If yo|
|00000180| 75 20 73 65 6e 64 20 6d | 65 20 61 20 6e 6f 74 65 |u send m|e a note|
|00000190| 0d 2f 2f 20 74 65 6c 6c | 69 6e 67 20 6d 65 20 68 |.// tell|ing me h|
|000001a0| 6f 77 20 63 6f 6f 6c 20 | 79 6f 75 20 74 68 69 6e |ow cool |you thin|
|000001b0| 6b 20 69 74 20 55 41 70 | 70 6c 65 4f 62 6a 65 63 |k it UAp|pleObjec|
|000001c0| 74 20 69 73 2c 20 79 6f | 75 20 6d 61 79 20 69 6e |t is, yo|u may in|
|000001d0| 63 6f 72 70 6f 72 61 74 | 65 20 69 74 20 69 6e 74 |corporat|e it int|
|000001e0| 6f 0d 2f 2f 20 61 6e 79 | 20 70 72 6f 64 75 63 74 |o.// any| product|
|000001f0| 20 79 6f 75 20 6c 69 6b | 65 20 28 73 69 78 2d 70 | you lik|e (six-p|
|00000200| 61 63 6b 73 20 6f 66 20 | 67 6f 6f 64 20 62 65 65 |acks of |good bee|
|00000210| 72 20 61 72 65 20 61 6c | 73 6f 20 61 63 63 65 70 |r are al|so accep|
|00000220| 74 61 62 6c 65 2c 20 6e | 6f 20 43 2e 4f 2e 44 2e |table, n|o C.O.D.|
|00000230| 0d 2f 2f 20 73 68 69 70 | 6d 65 6e 74 73 2c 20 70 |.// ship|ments, p|
|00000240| 6c 65 61 73 65 29 2e 20 | 20 41 6c 73 6f 2c 20 79 |lease). | Also, y|
|00000250| 6f 75 20 6d 75 73 74 20 | 6b 65 65 70 20 61 6c 6c |ou must |keep all|
|00000260| 20 63 6f 70 79 72 69 67 | 68 74 20 61 6e 64 20 6f | copyrig|ht and o|
|00000270| 74 68 65 72 20 6e 6f 74 | 69 63 65 73 20 69 6e 0d |ther not|ices in.|
|00000280| 2f 2f 20 74 68 65 20 73 | 6f 75 72 63 65 20 63 6f |// the s|ource co|
|00000290| 64 65 2c 20 65 73 70 65 | 63 69 61 6c 6c 79 20 4d |de, espe|cially M|
|000002a0| 59 20 4e 41 4d 45 20 28 | 54 68 65 20 73 79 73 74 |Y NAME (|The syst|
|000002b0| 65 6d 20 69 73 20 63 61 | 6c 6c 65 64 20 65 67 6f |em is ca|lled ego|
|000002c0| 2d 77 61 72 65 aa 2e 20 | 20 47 65 74 20 69 74 3f |-ware.. | Get it?|
|000002d0| 29 2e 0d 2f 2f 0d 2f 2f | 20 54 48 45 4f 52 59 20 |)..//.//| THEORY |
|000002e0| 4f 46 20 4f 50 45 52 41 | 54 49 4f 4e 0d 2f 2f 0d |OF OPERA|TION.//.|
|000002f0| 2f 2f 20 54 68 69 73 20 | 75 6e 69 74 20 69 6e 63 |// This |unit inc|
|00000300| 6c 75 64 65 73 20 61 6e | 64 20 75 73 65 73 20 74 |ludes an|d uses t|
|00000310| 77 6f 20 63 6c 61 73 73 | 65 73 20 66 6f 72 20 74 |wo class|es for t|
|00000320| 68 65 20 70 72 6f 63 65 | 73 73 69 6e 67 20 6f 66 |he proce|ssing of|
|00000330| 20 41 70 70 6c 65 45 76 | 65 6e 74 73 2c 0d 2f 2f | AppleEv|ents,.//|
|00000340| 20 65 73 70 65 63 69 61 | 6c 6c 79 20 41 70 70 6c | especia|lly Appl|
|00000350| 65 45 76 65 6e 74 73 20 | 77 68 6f 73 65 20 74 61 |eEvents |whose ta|
|00000360| 72 67 65 74 73 20 61 72 | 65 20 6f 62 6a 65 63 74 |rgets ar|e object|
|00000370| 73 20 69 6e 20 74 68 65 | 20 61 70 70 6c 69 63 61 |s in the| applica|
|00000380| 74 69 6f 6e 20 64 6f 6d | 61 69 6e 0d 2f 2f 20 28 |tion dom|ain.// (|
|00000390| 69 65 3a 20 6f 62 6a 65 | 63 74 20 73 70 65 63 69 |ie: obje|ct speci|
|000003a0| 66 69 65 72 73 29 2e 20 | 20 42 79 20 70 72 6f 70 |fiers). | By prop|
|000003b0| 65 72 6c 79 20 75 74 69 | 6c 69 7a 69 6e 67 20 54 |erly uti|lizing T|
|000003c0| 41 70 70 6c 65 4f 62 6a | 65 63 74 44 69 73 70 61 |AppleObj|ectDispa|
|000003d0| 74 63 68 65 72 20 61 6e | 64 0d 2f 2f 20 4d 41 70 |tcher an|d.// MAp|
|000003e0| 70 6c 65 4f 62 6a 65 63 | 74 2c 20 79 6f 75 20 73 |pleObjec|t, you s|
|000003f0| 68 6f 75 6c 64 20 62 65 | 20 61 62 6c 65 20 74 6f |hould be| able to|
|00000400| 2c 20 76 65 72 79 20 65 | 61 73 69 6c 79 2c 20 61 |, very e|asily, a|
|00000410| 64 64 20 66 75 6c 6c 20 | 41 70 70 6c 65 45 76 65 |dd full |AppleEve|
|00000420| 6e 74 20 73 75 70 70 6f | 72 74 0d 2f 2f 20 74 6f |nt suppo|rt.// to|
|00000430| 20 61 6e 79 20 77 65 6c | 6c 20 64 65 73 69 67 6e | any wel|l design|
|00000440| 65 64 20 6f 62 6a 65 63 | 74 2d 6f 72 69 65 6e 74 |ed objec|t-orient|
|00000450| 65 64 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 0d |ed appli|cation..|
|00000460| 2f 2f 0d 2f 2f 20 4d 41 | 70 70 6c 65 4f 62 6a 65 |//.// MA|ppleObje|
|00000470| 63 74 20 72 65 70 72 65 | 73 65 6e 74 73 20 61 6e |ct repre|sents an|
|00000480| 20 65 6e 63 61 70 73 75 | 6c 61 74 69 6f 6e 20 6f | encapsu|lation o|
|00000490| 66 20 74 68 65 20 73 74 | 61 6e 64 61 72 64 20 41 |f the st|andard A|
|000004a0| 70 70 6c 65 45 76 65 6e | 74 20 6f 62 6a 65 63 74 |ppleEven|t object|
|000004b0| 0d 2f 2f 20 6d 6f 64 65 | 6c 2e 20 20 54 68 65 20 |.// mode|l. The |
|000004c0| 76 61 72 69 6f 75 73 20 | 70 75 72 65 20 76 69 72 |various |pure vir|
|000004d0| 74 75 61 6c 20 6d 65 74 | 68 6f 64 73 20 61 72 65 |tual met|hods are|
|000004e0| 20 74 68 65 20 68 6f 6f | 6b 73 20 66 6f 72 20 74 | the hoo|ks for t|
|000004f0| 68 65 20 41 70 70 6c 65 | 45 76 65 6e 74 0d 2f 2f |he Apple|Event.//|
|00000500| 20 77 6f 72 6c 64 20 74 | 6f 20 62 65 20 74 72 61 | world t|o be tra|
|00000510| 6e 73 6c 61 74 65 64 20 | 69 6e 74 6f 20 61 70 70 |nslated |into app|
|00000520| 6c 69 63 61 74 69 6f 6e | 20 64 6f 6d 61 69 6e 20 |lication| domain |
|00000530| 69 6e 73 74 61 6e 63 65 | 73 2e 20 20 54 68 75 73 |instance|s. Thus|
|00000540| 2c 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 61 6c |, the fu|nctional|
|00000550| 69 74 79 0d 2f 2f 20 6f | 66 20 4d 41 70 70 6c 65 |ity.// o|f MApple|
|00000560| 4f 62 6a 65 63 74 20 69 | 73 20 62 61 73 65 64 20 |Object i|s based |
|00000570| 6f 6e 20 6d 61 6e 61 67 | 69 6e 67 20 74 68 65 20 |on manag|ing the |
|00000580| 74 72 61 6e 73 6c 61 74 | 69 6f 6e 20 62 65 74 77 |translat|ion betw|
|00000590| 65 65 6e 20 4f 62 6a 65 | 63 74 20 4d 6f 64 65 6c |een Obje|ct Model|
|000005a0| 0d 2f 2f 20 63 61 74 65 | 67 6f 72 69 65 73 20 61 |.// cate|gories a|
|000005b0| 6e 64 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 64 |nd appli|cation d|
|000005c0| 6f 6d 61 69 6e 20 69 6e | 73 74 61 6e 63 65 73 2e |omain in|stances.|
|000005d0| 0d 2f 2f 0d 2f 2f 20 54 | 41 70 70 6c 65 4f 62 6a |.//.// T|AppleObj|
|000005e0| 65 63 74 44 69 73 70 61 | 74 63 68 65 72 20 68 61 |ectDispa|tcher ha|
|000005f0| 73 20 61 20 76 65 72 79 | 20 64 69 66 66 65 72 65 |s a very| differe|
|00000600| 6e 74 2c 20 79 65 74 20 | 65 71 75 61 6c 6c 79 20 |nt, yet |equally |
|00000610| 69 6d 70 6f 72 74 61 6e | 74 2c 20 66 75 6e 63 74 |importan|t, funct|
|00000620| 69 6f 6e 2e 0d 2f 2f 20 | 57 68 65 72 65 61 73 2c |ion..// |Whereas,|
|00000630| 20 4d 41 70 70 6c 65 4f | 62 6a 65 63 74 20 64 65 | MAppleO|bject de|
|00000640| 66 69 6e 65 73 20 74 68 | 65 20 70 72 6f 74 6f 63 |fines th|e protoc|
|00000650| 6f 6c 20 66 6f 72 20 69 | 6e 74 65 72 2d 6f 62 6a |ol for i|nter-obj|
|00000660| 65 63 74 20 63 6f 6d 6d | 75 6e 69 63 61 74 69 6f |ect comm|unicatio|
|00000670| 6e 20 61 74 20 61 0d 2f | 2f 20 76 65 72 79 20 68 |n at a./|/ very h|
|00000680| 69 67 68 20 6c 65 76 65 | 6c 2c 20 54 41 70 70 6c |igh leve|l, TAppl|
|00000690| 65 4f 62 6a 65 63 74 44 | 69 73 70 61 74 63 68 65 |eObjectD|ispatche|
|000006a0| 72 20 65 6e 63 61 70 73 | 75 6c 61 74 65 73 20 74 |r encaps|ulates t|
|000006b0| 68 65 20 6d 65 63 68 61 | 6e 69 63 73 20 6f 66 20 |he mecha|nics of |
|000006c0| 74 72 61 6e 73 6c 61 74 | 69 6e 67 0d 2f 2f 20 74 |translat|ing.// t|
|000006d0| 68 65 20 41 70 70 6c 65 | 45 76 65 6e 74 20 70 72 |he Apple|Event pr|
|000006e0| 6f 74 6f 63 6f 6c 20 69 | 6e 74 6f 20 43 2b 2b 20 |otocol i|nto C++ |
|000006f0| 6f 62 6a 65 63 74 73 20 | 61 6e 64 20 6d 65 74 68 |objects |and meth|
|00000700| 6f 64 73 2e 20 20 49 74 | 20 70 72 6f 76 69 64 65 |ods. It| provide|
|00000710| 73 20 61 20 67 65 6e 65 | 72 69 63 0d 2f 2f 20 69 |s a gene|ric.// i|
|00000720| 6e 74 65 72 66 61 63 65 | 20 66 6f 72 20 68 61 6e |nterface| for han|
|00000730| 64 6c 69 6e 67 20 41 70 | 70 6c 65 45 76 65 6e 74 |dling Ap|pleEvent|
|00000740| 73 20 61 6e 64 20 74 72 | 61 6e 73 6c 61 74 69 6e |s and tr|anslatin|
|00000750| 67 20 41 70 70 6c 65 45 | 76 65 6e 74 20 6f 62 6a |g AppleE|vent obj|
|00000760| 65 63 74 20 73 70 65 63 | 69 66 69 65 72 73 0d 2f |ect spec|ifiers./|
|00000770| 2f 20 69 6e 74 6f 20 61 | 70 70 6c 69 63 61 74 69 |/ into a|pplicati|
|00000780| 6f 6e 20 64 6f 6d 61 69 | 6e 20 6f 62 6a 65 63 74 |on domai|n object|
|00000790| 20 69 6e 73 74 61 6e 63 | 65 73 2e 20 20 54 41 70 | instanc|es. TAp|
|000007a0| 70 6c 65 4f 62 6a 65 63 | 74 44 69 73 70 61 74 63 |pleObjec|tDispatc|
|000007b0| 68 65 72 20 69 73 20 69 | 6d 70 6c 65 6d 65 6e 74 |her is i|mplement|
|000007c0| 65 64 0d 2f 2f 20 62 79 | 20 77 72 61 70 70 69 6e |ed.// by| wrappin|
|000007d0| 67 20 74 68 65 20 4f 62 | 6a 65 63 74 20 53 75 70 |g the Ob|ject Sup|
|000007e0| 70 6f 72 74 20 4c 69 62 | 72 61 72 79 20 66 6f 72 |port Lib|rary for|
|000007f0| 20 74 68 65 20 6f 62 6a | 65 63 74 20 6d 6f 64 65 | the obj|ect mode|
|00000800| 6c 2d 69 6e 73 74 61 6e | 63 65 20 74 72 61 6e 73 |l-instan|ce trans|
|00000810| 6c 61 74 69 6f 6e 2e 0d | 2f 2f 0d 2f 2f 20 53 75 |lation..|//.// Su|
|00000820| 62 63 6c 61 73 73 65 73 | 20 6f 66 20 54 41 70 70 |bclasses| of TApp|
|00000830| 6c 65 4f 62 6a 65 63 74 | 44 69 73 70 61 74 63 68 |leObject|Dispatch|
|00000840| 65 72 20 6d 61 79 20 62 | 65 20 63 72 65 61 74 65 |er may b|e create|
|00000850| 64 20 74 6f 20 61 64 64 | 20 61 64 76 61 6e 63 65 |d to add| advance|
|00000860| 64 20 4f 53 4c 20 74 6f | 70 69 63 73 0d 2f 2f 20 |d OSL to|pics.// |
|00000870| 74 6f 20 74 68 65 20 6d | 65 6c 61 6e 67 65 20 6f |to the m|elange o|
|00000880| 66 20 6f 62 6a 65 63 74 | 20 64 69 73 74 72 69 62 |f object| distrib|
|00000890| 75 74 69 6f 6e 2e 20 20 | 54 68 69 6e 67 73 20 49 |ution. |Things I|
|000008a0| d5 64 20 6c 69 6b 65 20 | 74 6f 20 69 6e 63 6c 75 |.d like |to inclu|
|000008b0| 64 65 20 69 6e 20 66 75 | 74 75 72 65 0d 2f 2f 20 |de in fu|ture.// |
|000008c0| 76 65 72 73 69 6f 6e 73 | 20 6f 66 20 74 68 69 73 |versions| of this|
|000008d0| 20 70 72 6f 64 75 63 74 | 2c 20 69 66 20 61 6e 79 | product|, if any|
|000008e0| 2c 20 69 6e 63 6c 75 64 | 65 20 73 75 70 70 6f 72 |, includ|e suppor|
|000008f0| 74 20 66 6f 72 20 6d 61 | 72 6b 69 6e 67 20 61 6e |t for ma|rking an|
|00000900| 64 20 6c 69 73 74 73 2e | 0d 2f 2f 20 41 64 6d 69 |d lists.|.// Admi|
|00000910| 74 65 64 6c 79 2c 20 77 | 68 61 74 20 61 70 70 65 |tedly, w|hat appe|
|00000920| 61 72 73 20 68 65 72 65 | 20 69 73 20 6e 6f 74 20 |ars here| is not |
|00000930| 74 68 65 20 62 65 20 61 | 6c 6c 20 65 6e 64 20 61 |the be a|ll end a|
|00000940| 6c 6c 20 6f 66 20 6f 62 | 6a 65 63 74 20 70 72 6f |ll of ob|ject pro|
|00000950| 63 65 73 73 69 6e 67 3b | 0d 2f 2f 20 69 74 d5 73 |cessing;|.// it.s|
|00000960| 20 73 69 6d 70 6c 79 20 | 61 20 73 65 63 6f 6e 64 | simply |a second|
|00000970| 20 61 70 70 72 6f 78 69 | 6d 61 74 69 6f 6e 20 70 | approxi|mation p|
|00000980| 72 6f 6f 66 20 6f 66 20 | 63 6f 6e 63 65 70 74 20 |roof of |concept |
|00000990| 74 68 61 74 20 74 68 69 | 73 20 69 73 20 70 6f 73 |that thi|s is pos|
|000009a0| 73 69 62 6c 65 2c 0d 2f | 2f 20 77 69 74 68 20 74 |sible,./|/ with t|
|000009b0| 68 65 20 70 6f 74 65 6e | 74 69 61 6c 20 6f 66 20 |he poten|tial of |
|000009c0| 62 65 69 6e 67 20 65 78 | 63 65 70 74 69 6f 6e 61 |being ex|ceptiona|
|000009d0| 6c 6c 79 20 65 61 73 79 | 20 74 6f 20 75 73 65 20 |lly easy| to use |
|000009e0| 61 6e 64 20 70 72 6f 67 | 72 61 6d 2e 0d 0d 23 69 |and prog|ram...#i|
|000009f0| 66 6e 64 65 66 20 5f 55 | 41 50 50 4c 45 4f 42 4a |fndef _U|APPLEOBJ|
|00000a00| 45 43 54 5f 0d 23 64 65 | 66 69 6e 65 20 5f 55 41 |ECT_.#de|fine _UA|
|00000a10| 50 50 4c 45 4f 42 4a 45 | 43 54 5f 0d 0d 23 69 66 |PPLEOBJE|CT_..#if|
|00000a20| 6e 64 65 66 20 5f 5f 41 | 50 50 4c 45 45 56 45 4e |ndef __A|PPLEEVEN|
|00000a30| 54 53 5f 5f 0d 23 69 6e | 63 6c 75 64 65 20 3c 41 |TS__.#in|clude <A|
|00000a40| 70 70 6c 65 45 76 65 6e | 74 73 2e 68 3e 0d 23 65 |ppleEven|ts.h>.#e|
|00000a50| 6e 64 69 66 0d 0d 65 6e | 75 6d 0d 7b 0d 09 65 72 |ndif..en|um.{..er|
|00000a60| 72 41 70 70 6c 65 4f 62 | 6a 65 63 74 44 69 73 70 |rAppleOb|jectDisp|
|00000a70| 61 74 63 68 65 72 41 6c | 72 65 61 64 79 49 6e 73 |atcherAl|readyIns|
|00000a80| 74 61 6c 6c 65 64 20 3d | 20 31 30 30 30 2c 0d 09 |talled =| 1000,..|
|00000a90| 65 72 72 41 6c 72 65 61 | 64 79 48 61 76 65 41 6e |errAlrea|dyHaveAn|
|00000aa0| 41 70 70 6c 69 63 61 74 | 69 6f 6e 20 3d 20 31 30 |Applicat|ion = 10|
|00000ab0| 30 31 2c 0d 09 65 72 72 | 43 61 6e 74 43 6f 70 79 |01,..err|CantCopy|
|00000ac0| 54 68 65 41 70 70 6c 69 | 63 61 74 69 6f 6e 20 3d |TheAppli|cation =|
|00000ad0| 20 31 30 30 32 0d 7d 3b | 0d 0d 0d 63 6c 61 73 73 | 1002.};|...class|
|00000ae0| 20 54 41 70 70 6c 65 4f | 62 6a 65 63 74 44 69 73 | TAppleO|bjectDis|
|00000af0| 70 61 74 63 68 65 72 3b | 0d 63 6c 61 73 73 20 4d |patcher;|.class M|
|00000b00| 41 70 70 6c 65 4f 62 6a | 65 63 74 3b 0d 0d 63 6c |AppleObj|ect;..cl|
|00000b10| 61 73 73 20 54 41 70 70 | 6c 65 4f 62 6a 65 63 74 |ass TApp|leObject|
|00000b20| 44 69 73 70 61 74 63 68 | 65 72 0d 7b 0d 70 75 62 |Dispatch|er.{.pub|
|00000b30| 6c 69 63 3a 0d 09 54 41 | 70 70 6c 65 4f 62 6a 65 |lic:..TA|ppleObje|
|00000b40| 63 74 44 69 73 70 61 74 | 63 68 65 72 28 29 3b 0d |ctDispat|cher();.|
|00000b50| 09 76 69 72 74 75 61 6c | 20 7e 54 41 70 70 6c 65 |.virtual| ~TApple|
|00000b60| 4f 62 6a 65 63 74 44 69 | 73 70 61 74 63 68 65 72 |ObjectDi|spatcher|
|00000b70| 28 29 3b 0d 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |();...vi|rtual vo|
|00000b80| 69 64 20 49 6e 73 74 61 | 6c 6c 28 29 3b 0d 0d 09 |id Insta|ll();...|
|00000b90| 76 69 72 74 75 61 6c 20 | 4d 41 70 70 6c 65 4f 62 |virtual |MAppleOb|
|00000ba0| 6a 65 63 74 2a 20 45 78 | 74 72 61 63 74 4f 62 6a |ject* Ex|tractObj|
|00000bb0| 65 63 74 28 63 6f 6e 73 | 74 20 41 45 44 65 73 63 |ect(cons|t AEDesc|
|00000bc0| 26 20 64 65 73 63 72 69 | 70 74 6f 72 29 3b 0d 09 |& descri|ptor);..|
|00000bd0| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 20 53 74 75 |virtual |void Stu|
|00000be0| 66 66 44 65 73 63 72 69 | 70 74 6f 72 28 41 45 44 |ffDescri|ptor(AED|
|00000bf0| 65 73 63 26 20 64 65 73 | 63 72 69 70 74 6f 72 2c |esc& des|criptor,|
|00000c00| 20 4d 41 70 70 6c 65 4f | 62 6a 65 63 74 2a 20 6f | MAppleO|bject* o|
|00000c10| 62 6a 65 63 74 29 3b 0d | 0d 09 76 69 72 74 75 61 |bject);.|..virtua|
|00000c20| 6c 20 76 6f 69 64 20 48 | 61 6e 64 6c 65 41 70 70 |l void H|andleApp|
|00000c30| 6c 65 45 76 65 6e 74 28 | 63 6f 6e 73 74 20 41 70 |leEvent(|const Ap|
|00000c40| 70 6c 65 45 76 65 6e 74 | 26 20 6d 65 73 73 61 67 |pleEvent|& messag|
|00000c50| 65 2c 0d 09 09 09 09 09 | 09 09 09 20 20 41 70 70 |e,......|... App|
|00000c60| 6c 65 45 76 65 6e 74 26 | 20 72 65 70 6c 79 2c 0d |leEvent&| reply,.|
|00000c70| 09 09 09 09 09 09 09 09 | 20 20 6c 6f 6e 67 20 72 |........| long r|
|00000c80| 65 66 43 6f 6e 29 3b 0d | 0d 09 76 69 72 74 75 61 |efCon);.|..virtua|
|00000c90| 6c 20 76 6f 69 64 20 41 | 63 63 65 73 73 43 6f 6e |l void A|ccessCon|
|00000ca0| 74 61 69 6e 65 64 4f 62 | 6a 65 63 74 73 28 44 65 |tainedOb|jects(De|
|00000cb0| 73 63 54 79 70 65 20 64 | 65 73 69 72 65 64 43 6c |scType d|esiredCl|
|00000cc0| 61 73 73 2c 0d 09 09 09 | 09 09 09 09 09 09 09 63 |ass,....|.......c|
|00000cd0| 6f 6e 73 74 20 41 45 44 | 65 73 63 26 20 63 6f 6e |onst AED|esc& con|
|00000ce0| 74 61 69 6e 65 72 2c 0d | 09 09 09 09 09 09 09 09 |tainer,.|........|
|00000cf0| 09 09 44 65 73 63 54 79 | 70 65 20 63 6f 6e 74 61 |..DescTy|pe conta|
|00000d00| 69 6e 65 72 43 6c 61 73 | 73 2c 0d 09 09 09 09 09 |inerClas|s,......|
|00000d10| 09 09 09 09 09 44 65 73 | 63 54 79 70 65 20 66 6f |.....Des|cType fo|
|00000d20| 72 6d 2c 0d 09 09 09 09 | 09 09 09 09 09 09 63 6f |rm,.....|......co|
|00000d30| 6e 73 74 20 41 45 44 65 | 73 63 26 20 73 65 6c 65 |nst AEDe|sc& sele|
|00000d40| 63 74 69 6f 6e 44 61 74 | 61 2c 0d 09 09 09 09 09 |ctionDat|a,......|
|00000d50| 09 09 09 09 09 41 45 44 | 65 73 63 26 20 76 61 6c |.....AED|esc& val|
|00000d60| 75 65 2c 0d 09 09 09 09 | 09 09 09 09 09 09 6c 6f |ue,.....|......lo|
|00000d70| 6e 67 20 72 65 66 43 6f | 6e 29 3b 0d 0d 09 76 69 |ng refCo|n);...vi|
|00000d80| 72 74 75 61 6c 20 6c 6f | 6e 67 20 43 6f 75 6e 74 |rtual lo|ng Count|
|00000d90| 4f 62 6a 65 63 74 73 28 | 63 6f 6e 73 74 20 41 45 |Objects(|const AE|
|00000da0| 44 65 73 63 26 20 63 6f | 6e 74 61 69 6e 65 72 54 |Desc& co|ntainerT|
|00000db0| 6f 6b 65 6e 2c 0d 09 09 | 09 09 09 09 09 20 20 44 |oken,...|..... D|
|00000dc0| 65 73 63 54 79 70 65 20 | 63 6f 75 6e 74 4f 62 6a |escType |countObj|
|00000dd0| 65 63 74 73 4f 66 54 79 | 70 65 29 3b 0d 0d 09 76 |ectsOfTy|pe);...v|
|00000de0| 69 72 74 75 61 6c 20 42 | 6f 6f 6c 65 61 6e 20 43 |irtual B|oolean C|
|00000df0| 6f 6d 70 61 72 65 4f 62 | 6a 65 63 74 73 28 44 65 |ompareOb|jects(De|
|00000e00| 73 63 54 79 70 65 20 6f | 70 65 72 61 74 69 6f 6e |scType o|peration|
|00000e10| 2c 0d 09 09 09 09 09 09 | 09 09 20 20 20 63 6f 6e |,.......|.. con|
|00000e20| 73 74 20 41 45 44 65 73 | 63 26 20 6f 62 6a 31 2c |st AEDes|c& obj1,|
|00000e30| 0d 09 09 09 09 09 09 09 | 09 20 20 20 63 6f 6e 73 |........|. cons|
|00000e40| 74 20 41 45 44 65 73 63 | 26 20 6f 62 6a 32 29 3b |t AEDesc|& obj2);|
|00000e50| 0d 0d 09 76 69 72 74 75 | 61 6c 20 76 6f 69 64 20 |...virtu|al void |
|00000e60| 44 69 73 70 6f 73 65 54 | 6f 6b 65 6e 28 41 45 44 |DisposeT|oken(AED|
|00000e70| 65 73 63 26 20 75 6e 6e | 65 65 64 65 64 54 6f 6b |esc& unn|eededTok|
|00000e80| 65 6e 29 3b 0d 0d 09 76 | 69 72 74 75 61 6c 20 4d |en);...v|irtual M|
|00000e90| 41 70 70 6c 65 4f 62 6a | 65 63 74 2a 20 47 65 74 |AppleObj|ect* Get|
|00000ea0| 54 61 72 67 65 74 28 63 | 6f 6e 73 74 20 41 70 70 |Target(c|onst App|
|00000eb0| 6c 65 45 76 65 6e 74 26 | 20 6d 65 73 73 61 67 65 |leEvent&| message|
|00000ec0| 29 3b 0d 0d 09 76 69 72 | 74 75 61 6c 20 76 6f 69 |);...vir|tual voi|
|00000ed0| 64 20 53 65 74 54 6f 6b | 65 6e 4f 62 6a 65 63 74 |d SetTok|enObject|
|00000ee0| 44 69 73 70 6f 73 61 6c | 28 4d 41 70 70 6c 65 4f |Disposal|(MAppleO|
|00000ef0| 62 6a 65 63 74 2a 20 74 | 6f 6b 65 6e 4f 62 6a 65 |bject* t|okenObje|
|00000f00| 63 74 2c 0d 09 09 09 09 | 09 09 09 09 09 20 20 20 |ct,.....|..... |
|00000f10| 42 6f 6f 6c 65 61 6e 20 | 6e 65 65 64 73 44 69 73 |Boolean |needsDis|
|00000f20| 70 6f 73 61 6c 29 3b 0d | 09 09 2f 2f 20 49 6e 20 |posal);.|..// In |
|00000f30| 61 64 64 69 74 69 6f 6e | 20 74 6f 20 74 68 65 20 |addition| to the |
|00000f40| 6e 65 65 64 73 44 69 73 | 70 6f 73 61 6c 20 61 72 |needsDis|posal ar|
|00000f50| 67 75 6d 65 6e 74 20 72 | 65 74 75 72 6e 65 64 20 |gument r|eturned |
|00000f60| 66 72 6f 6d 0d 09 09 2f | 2f 20 47 65 74 43 6f 6e |from.../|/ GetCon|
|00000f70| 74 61 69 6e 65 64 4f 62 | 6a 65 63 74 2c 20 61 6e |tainedOb|ject, an|
|00000f80| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 6d 61 79 | applica|tion may|
|00000f90| 20 63 6f 6e 74 72 6f 6c | 20 74 68 65 20 6d 61 6e | control| the man|
|00000fa0| 61 67 65 6d 65 6e 74 20 | 6f 66 20 61 6e 0d 09 09 |agement |of an...|
|00000fb0| 2f 2f 20 6f 62 6a 65 63 | 74 20 62 79 20 63 61 6c |// objec|t by cal|
|00000fc0| 6c 69 6e 67 20 74 68 65 | 20 53 65 74 54 6f 6b 65 |ling the| SetToke|
|00000fd0| 6e 4f 62 6a 65 63 74 44 | 69 73 70 6f 73 61 6c 20 |nObjectD|isposal |
|00000fe0| 72 6f 75 74 69 6e 65 2e | 20 20 49 66 20 74 72 75 |routine.| If tru|
|00000ff0| 65 20 69 73 0d 09 09 2f | 2f 20 70 61 73 73 65 64 |e is.../|/ passed|
|00001000| 20 66 6f 72 20 6e 65 65 | 64 73 44 69 73 70 6f 73 | for nee|dsDispos|
|00001010| 61 6c 2c 20 74 68 65 20 | 74 6f 6b 65 6e 4f 62 6a |al, the |tokenObj|
|00001020| 65 63 74 20 77 69 6c 6c | 20 62 65 20 6d 61 72 6b |ect will| be mark|
|00001030| 65 64 20 61 73 20 6e 65 | 65 64 69 6e 67 0d 09 09 |ed as ne|eding...|
|00001040| 2f 2f 20 64 69 73 70 6f | 73 61 6c 20 69 66 20 69 |// dispo|sal if i|
|00001050| 74 20 69 73 20 6e 6f 74 | 20 70 72 65 76 69 6f 75 |t is not| previou|
|00001060| 73 6c 79 20 6d 61 72 6b | 65 64 20 61 73 20 73 75 |sly mark|ed as su|
|00001070| 63 68 2e 20 20 49 66 20 | 66 61 6c 73 65 20 69 73 |ch. If |false is|
|00001080| 20 70 61 73 73 65 64 0d | 09 09 2f 2f 20 66 6f 72 | passed.|..// for|
|00001090| 20 6e 65 65 64 73 44 69 | 73 70 6f 73 61 6c 2c 20 | needsDi|sposal, |
|000010a0| 74 68 65 20 74 6f 6b 65 | 6e 4f 62 6a 65 63 74 20 |the toke|nObject |
|000010b0| 77 69 6c 6c 20 62 65 20 | 6d 61 72 6b 65 64 20 61 |will be |marked a|
|000010c0| 73 20 6e 6f 74 20 6e 65 | 65 64 69 6e 67 0d 09 09 |s not ne|eding...|
|000010d0| 2f 2f 20 64 69 73 70 6f | 73 61 6c 20 69 66 20 69 |// dispo|sal if i|
|000010e0| 74 20 68 61 73 20 70 72 | 65 76 69 6f 75 73 6c 79 |t has pr|eviously|
|000010f0| 20 62 65 65 6e 20 6d 61 | 72 6b 65 64 20 61 73 20 | been ma|rked as |
|00001100| 73 75 63 68 2e 0d 0d 09 | 76 69 72 74 75 61 6c 20 |such....|virtual |
|00001110| 42 6f 6f 6c 65 61 6e 20 | 47 65 74 54 6f 6b 65 6e |Boolean |GetToken|
|00001120| 4f 62 6a 65 63 74 44 69 | 73 70 6f 73 61 6c 28 63 |ObjectDi|sposal(c|
|00001130| 6f 6e 73 74 20 4d 41 70 | 70 6c 65 4f 62 6a 65 63 |onst MAp|pleObjec|
|00001140| 74 2a 20 74 6f 6b 65 6e | 4f 62 6a 65 63 74 29 3b |t* token|Object);|
|00001150| 0d 09 09 2f 2f 20 49 66 | 20 79 6f 75 20 77 69 73 |...// If| you wis|
|00001160| 68 20 74 6f 20 69 6e 71 | 75 69 72 65 20 61 62 6f |h to inq|uire abo|
|00001170| 75 74 20 74 68 65 20 64 | 69 73 70 6f 73 61 6c 20 |ut the d|isposal |
|00001180| 73 74 61 74 75 73 20 6f | 66 20 61 6e 79 20 70 61 |status o|f any pa|
|00001190| 72 74 69 63 75 6c 61 72 | 0d 09 09 2f 2f 20 6f 62 |rticular|...// ob|
|000011a0| 6a 65 63 74 2c 20 74 68 | 69 73 20 72 6f 75 74 69 |ject, th|is routi|
|000011b0| 6e 65 20 77 69 6c 6c 20 | 72 65 74 75 72 6e 20 74 |ne will |return t|
|000011c0| 72 75 65 20 69 66 20 69 | 74 20 69 73 20 73 65 74 |rue if i|t is set|
|000011d0| 20 74 6f 20 62 65 20 64 | 65 6c 65 74 65 64 0d 09 | to be d|eleted..|
|000011e0| 09 2f 2f 20 77 68 65 6e | 20 69 74 73 20 74 6f 6b |.// when| its tok|
|000011f0| 65 6e 20 69 73 20 64 69 | 73 70 6f 73 65 64 2e 0d |en is di|sposed..|
|00001200| 0d 09 76 69 72 74 75 61 | 6c 20 4d 41 70 70 6c 65 |..virtua|l MApple|
|00001210| 4f 62 6a 65 63 74 2a 20 | 52 65 73 6f 6c 76 65 53 |Object* |ResolveS|
|00001220| 70 65 63 69 66 69 65 72 | 28 41 45 44 65 73 63 26 |pecifier|(AEDesc&|
|00001230| 20 6f 62 6a 65 63 74 53 | 70 65 63 69 66 69 65 72 | objectS|pecifier|
|00001240| 29 3b 0d 09 09 2f 2f 20 | 49 6e 20 74 68 65 20 63 |);...// |In the c|
|00001250| 6f 75 72 73 65 20 6f 66 | 20 70 72 6f 63 65 73 73 |ourse of| process|
|00001260| 69 6e 67 20 61 6e 20 41 | 70 70 6c 65 45 76 65 6e |ing an A|ppleEven|
|00001270| 74 2c 20 79 6f 75 20 6d | 61 79 20 72 75 6e 20 61 |t, you m|ay run a|
|00001280| 63 72 6f 73 73 20 61 6e | 20 6f 62 6a 65 63 74 0d |cross an| object.|
|00001290| 09 09 2f 2f 20 6f 66 20 | 74 79 70 65 4f 62 6a 65 |..// of |typeObje|
|000012a0| 63 74 53 70 65 63 69 66 | 69 65 72 2e 20 20 49 66 |ctSpecif|ier. If|
|000012b0| 20 73 6f 2c 20 79 6f 75 | 20 6d 61 79 20 72 65 73 | so, you| may res|
|000012c0| 6f 6c 76 65 20 74 68 61 | 74 20 69 6e 74 6f 20 61 |olve tha|t into a|
|000012d0| 20 73 70 65 63 69 66 69 | 63 0d 09 09 2f 2f 20 6f | specifi|c...// o|
|000012e0| 62 6a 65 63 74 20 62 79 | 20 63 61 6c 6c 69 6e 67 |bject by| calling|
|000012f0| 20 52 65 73 6f 6c 76 65 | 53 70 65 63 69 66 69 65 | Resolve|Specifie|
|00001300| 72 2e 20 20 54 68 69 73 | 20 72 6f 75 74 69 6e 65 |r. This| routine|
|00001310| 20 77 69 6c 6c 20 6e 65 | 76 65 72 20 72 65 74 75 | will ne|ver retu|
|00001320| 72 6e 0d 09 09 2f 2f 20 | 6e 69 6c 2e 20 20 49 66 |rn...// |nil. If|
|00001330| 20 6e 6f 20 73 75 63 68 | 20 6f 62 6a 65 63 74 20 | no such| object |
|00001340| 65 78 69 73 74 73 20 6f | 72 20 73 6f 6d 65 20 6f |exists o|r some o|
|00001350| 74 68 65 72 20 65 78 63 | 65 70 74 69 6f 6e 20 6f |ther exc|eption o|
|00001360| 63 63 75 72 73 2c 20 61 | 0d 09 09 2f 2f 20 66 61 |ccurs, a|...// fa|
|00001370| 69 6c 75 72 65 20 77 69 | 6c 6c 20 62 65 20 74 68 |ilure wi|ll be th|
|00001380| 72 6f 77 6e 2e 20 20 49 | 6e 20 74 68 65 20 74 69 |rown. I|n the ti|
|00001390| 6d 65 20 6f 66 20 74 61 | 72 67 65 74 69 6e 67 20 |me of ta|rgeting |
|000013a0| 41 70 70 6c 65 45 76 65 | 6e 74 73 2c 20 69 66 0d |AppleEve|nts, if.|
|000013b0| 09 09 2f 2f 20 74 68 65 | 20 64 69 72 65 63 74 20 |..// the| direct |
|000013c0| 70 61 72 61 6d 65 74 65 | 72 20 69 73 20 61 6e 20 |paramete|r is an |
|000013d0| 6f 62 6a 65 63 74 20 73 | 70 65 63 69 66 69 65 72 |object s|pecifier|
|000013e0| 2c 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |, this f|unction |
|000013f0| 77 69 6c 6c 0d 09 09 2f | 2f 20 62 65 20 63 61 6c |will.../|/ be cal|
|00001400| 6c 65 64 20 62 79 20 74 | 68 65 20 66 72 61 6d 65 |led by t|he frame|
|00001410| 77 6f 72 6b 2e 0d 0d 09 | 76 69 72 74 75 61 6c 20 |work....|virtual |
|00001420| 76 6f 69 64 20 49 6e 73 | 74 61 6c 6c 41 70 70 6c |void Ins|tallAppl|
|00001430| 65 45 76 65 6e 74 48 61 | 6e 64 6c 65 72 28 41 45 |eEventHa|ndler(AE|
|00001440| 45 76 65 6e 74 43 6c 61 | 73 73 20 74 68 65 43 6c |EventCla|ss theCl|
|00001450| 61 73 73 2c 20 41 45 45 | 76 65 6e 74 49 44 20 74 |ass, AEE|ventID t|
|00001460| 68 65 49 44 2c 0d 09 09 | 09 09 09 09 09 09 09 09 |heID,...|........|
|00001470| 20 20 6c 6f 6e 67 20 72 | 65 66 43 6f 6e 29 3b 0d | long r|efCon);.|
|00001480| 0d 09 73 74 61 74 69 63 | 20 54 41 70 70 6c 65 4f |..static| TAppleO|
|00001490| 62 6a 65 63 74 44 69 73 | 70 61 74 63 68 65 72 2a |bjectDis|patcher*|
|000014a0| 20 47 65 74 44 69 73 70 | 61 74 63 68 65 72 28 29 | GetDisp|atcher()|
|000014b0| 3b 0d 0d 70 72 69 76 61 | 74 65 3a 0d 09 73 74 61 |;..priva|te:..sta|
|000014c0| 74 69 63 20 70 61 73 63 | 61 6c 20 4f 53 45 72 72 |tic pasc|al OSErr|
|000014d0| 20 41 70 70 6c 65 45 76 | 65 6e 74 48 61 6e 64 6c | AppleEv|entHandl|
|000014e0| 65 72 28 63 6f 6e 73 74 | 20 41 70 70 6c 65 45 76 |er(const| AppleEv|
|000014f0| 65 6e 74 2a 20 6d 65 73 | 73 61 67 65 2c 0d 09 09 |ent* mes|sage,...|
|00001500| 09 09 09 09 09 09 09 09 | 20 20 41 70 70 6c 65 45 |........| AppleE|
|00001510| 76 65 6e 74 2a 20 72 65 | 70 6c 79 2c 0d 09 09 09 |vent* re|ply,....|
|00001520| 09 09 09 09 09 09 09 20 | 20 6c 6f 6e 67 20 72 65 |....... | long re|
|00001530| 66 43 6f 6e 29 3b 0d 0d | 09 73 74 61 74 69 63 20 |fCon);..|.static |
|00001540| 70 61 73 63 61 6c 20 4f | 53 45 72 72 20 4f 53 4c |pascal O|SErr OSL|
|00001550| 4f 62 6a 65 63 74 41 63 | 63 65 73 73 6f 72 48 61 |ObjectAc|cessorHa|
|00001560| 6e 64 6c 65 72 28 44 65 | 73 63 54 79 70 65 20 64 |ndler(De|scType d|
|00001570| 65 73 69 72 65 64 43 6c | 61 73 73 2c 0d 09 09 09 |esiredCl|ass,....|
|00001580| 09 09 09 09 09 09 09 09 | 09 20 63 6f 6e 73 74 20 |........|. const |
|00001590| 41 45 44 65 73 63 2a 20 | 63 6f 6e 74 61 69 6e 65 |AEDesc* |containe|
|000015a0| 72 2c 0d 09 09 09 09 09 | 09 09 09 09 09 09 09 20 |r,......|....... |
|000015b0| 44 65 73 63 54 79 70 65 | 20 63 6f 6e 74 61 69 6e |DescType| contain|
|000015c0| 65 72 43 6c 61 73 73 2c | 0d 09 09 09 09 09 09 09 |erClass,|........|
|000015d0| 09 09 09 09 09 20 44 65 | 73 63 54 79 70 65 20 66 |..... De|scType f|
|000015e0| 6f 72 6d 2c 0d 09 09 09 | 09 09 09 09 09 09 09 09 |orm,....|........|
|000015f0| 09 20 63 6f 6e 73 74 20 | 41 45 44 65 73 63 2a 20 |. const |AEDesc* |
|00001600| 73 65 6c 65 63 74 69 6f | 6e 44 61 74 61 2c 0d 09 |selectio|nData,..|
|00001610| 09 09 09 09 09 09 09 09 | 09 09 09 20 41 45 44 65 |........|... AEDe|
|00001620| 73 63 2a 20 76 61 6c 75 | 65 2c 0d 09 09 09 09 09 |sc* valu|e,......|
|00001630| 09 09 09 09 09 09 09 20 | 6c 6f 6e 67 20 72 65 66 |....... |long ref|
|00001640| 43 6f 6e 29 3b 0d 0d 09 | 73 74 61 74 69 63 20 70 |Con);...|static p|
|00001650| 61 73 63 61 6c 20 4f 53 | 45 72 72 20 4f 53 4c 43 |ascal OS|Err OSLC|
|00001660| 6f 75 6e 74 4f 62 6a 65 | 63 74 73 48 61 6e 64 6c |ountObje|ctsHandl|
|00001670| 65 72 28 44 65 73 63 54 | 79 70 65 20 63 6f 75 6e |er(DescT|ype coun|
|00001680| 74 4f 62 6a 65 63 74 73 | 4f 66 54 79 70 65 2c 0d |tObjects|OfType,.|
|00001690| 09 09 09 09 09 09 09 09 | 09 09 09 20 20 20 44 65 |........|... De|
|000016a0| 73 63 54 79 70 65 20 63 | 6f 6e 74 61 69 6e 65 72 |scType c|ontainer|
|000016b0| 43 6c 61 73 73 2c 0d 09 | 09 09 09 09 09 09 09 09 |Class,..|........|
|000016c0| 09 09 20 20 20 63 6f 6e | 73 74 20 41 45 44 65 73 |.. con|st AEDes|
|000016d0| 63 2a 20 63 6f 6e 74 61 | 69 6e 65 72 54 6f 6b 65 |c* conta|inerToke|
|000016e0| 6e 2c 0d 09 09 09 09 09 | 09 09 09 09 09 09 20 20 |n,......|...... |
|000016f0| 20 6c 6f 6e 67 2a 20 72 | 65 73 75 6c 74 29 3b 0d | long* r|esult);.|
|00001700| 0d 09 73 74 61 74 69 63 | 20 70 61 73 63 61 6c 20 |..static| pascal |
|00001710| 4f 53 45 72 72 20 4f 53 | 4c 43 6f 6d 70 61 72 65 |OSErr OS|LCompare|
|00001720| 4f 62 6a 65 63 74 73 48 | 61 6e 64 6c 65 72 28 44 |ObjectsH|andler(D|
|00001730| 65 73 63 54 79 70 65 20 | 6f 70 65 72 61 74 69 6f |escType |operatio|
|00001740| 6e 2c 0d 09 09 09 09 09 | 09 09 09 09 09 09 09 20 |n,......|....... |
|00001750| 63 6f 6e 73 74 20 41 45 | 44 65 73 63 20 2a 6f 62 |const AE|Desc *ob|
|00001760| 6a 31 2c 0d 09 09 09 09 | 09 09 09 09 09 09 09 09 |j1,.....|........|
|00001770| 20 63 6f 6e 73 74 20 41 | 45 44 65 73 63 20 2a 6f | const A|EDesc *o|
|00001780| 62 6a 32 2c 0d 09 09 09 | 09 09 09 09 09 09 09 09 |bj2,....|........|
|00001790| 09 20 42 6f 6f 6c 65 61 | 6e 20 2a 72 65 73 75 6c |. Boolea|n *resul|
|000017a0| 74 29 3b 0d 0d 09 73 74 | 61 74 69 63 20 70 61 73 |t);...st|atic pas|
|000017b0| 63 61 6c 20 4f 53 45 72 | 72 20 4f 53 4c 44 69 73 |cal OSEr|r OSLDis|
|000017c0| 70 6f 73 65 54 6f 6b 65 | 6e 48 61 6e 64 6c 65 72 |poseToke|nHandler|
|000017d0| 28 41 45 44 65 73 63 2a | 20 75 6e 6e 65 65 64 65 |(AEDesc*| unneede|
|000017e0| 64 54 6f 6b 65 6e 29 3b | 0d 0d 09 73 74 61 74 69 |dToken);|...stati|
|000017f0| 63 20 54 41 70 70 6c 65 | 4f 62 6a 65 63 74 44 69 |c TApple|ObjectDi|
|00001800| 73 70 61 74 63 68 65 72 | 2a 20 66 67 44 69 73 70 |spatcher|* fgDisp|
|00001810| 61 74 63 68 65 72 3b 0d | 09 73 74 61 74 69 63 20 |atcher;.|.static |
|00001820| 42 6f 6f 6c 65 61 6e 09 | 66 67 49 6e 69 74 65 64 |Boolean.|fgInited|
|00001830| 3b 0d 0d 09 4d 41 70 70 | 6c 65 4f 62 6a 65 63 74 |;...MApp|leObject|
|00001840| 2a 2a 2a 20 66 44 69 73 | 70 6f 73 61 6c 4c 69 73 |*** fDis|posalLis|
|00001850| 74 3b 0d 09 6c 6f 6e 67 | 20 66 44 69 73 70 6f 73 |t;..long| fDispos|
|00001860| 61 6c 4c 69 73 74 53 69 | 7a 65 3b 0d 09 09 2f 2f |alListSi|ze;...//|
|00001870| 20 4c 69 73 74 20 6f 66 | 20 6f 62 6a 65 63 74 73 | List of| objects|
|00001880| 20 74 6f 20 62 65 20 64 | 69 73 70 6f 73 65 64 20 | to be d|isposed |
|00001890| 77 68 65 6e 20 77 65 20 | 61 72 65 20 66 69 6e 69 |when we |are fini|
|000018a0| 73 68 65 64 20 77 69 74 | 68 20 74 68 65 6d 2e 0d |shed wit|h them..|
|000018b0| 0d 09 4d 41 70 70 6c 65 | 4f 62 6a 65 63 74 2a 09 |..MApple|Object*.|
|000018c0| 66 41 70 70 6c 69 63 61 | 74 69 6f 6e 3b 0d 7d 3b |fApplica|tion;.};|
|000018d0| 0d 0d 0d 63 6c 61 73 73 | 20 4d 41 70 70 6c 65 4f |...class| MAppleO|
|000018e0| 62 6a 65 63 74 0d 7b 0d | 70 75 62 6c 69 63 3a 0d |bject.{.|public:.|
|000018f0| 09 4d 41 70 70 6c 65 4f | 62 6a 65 63 74 28 29 3b |.MAppleO|bject();|
|00001900| 0d 09 09 2f 2f 20 64 65 | 66 61 75 6c 74 20 63 6f |...// de|fault co|
|00001910| 6e 73 74 72 75 63 74 6f | 72 0d 0d 09 4d 41 70 70 |nstructo|r...MApp|
|00001920| 6c 65 4f 62 6a 65 63 74 | 28 63 6f 6e 73 74 20 4d |leObject|(const M|
|00001930| 41 70 70 6c 65 4f 62 6a | 65 63 74 26 20 63 6f 70 |AppleObj|ect& cop|
|00001940| 79 29 3b 0d 09 09 2f 2f | 20 63 6f 70 79 20 63 6f |y);...//| copy co|
|00001950| 6e 73 74 72 75 63 74 6f | 72 0d 0d 09 76 69 72 74 |nstructo|r...virt|
|00001960| 75 61 6c 20 7e 4d 41 70 | 70 6c 65 4f 62 6a 65 63 |ual ~MAp|pleObjec|
|00001970| 74 28 29 3b 0d 09 09 2f | 2f 20 64 65 73 74 72 75 |t();.../|/ destru|
|00001980| 63 74 6f 72 2c 20 64 75 | 68 0d 0d 09 4d 41 70 70 |ctor, du|h...MApp|
|00001990| 6c 65 4f 62 6a 65 63 74 | 26 20 6f 70 65 72 61 74 |leObject|& operat|
|000019a0| 6f 72 3d 28 63 6f 6e 73 | 74 20 4d 41 70 70 6c 65 |or=(cons|t MApple|
|000019b0| 4f 62 6a 65 63 74 26 20 | 61 73 73 69 67 6e 54 6f |Object& |assignTo|
|000019c0| 29 3b 0d 09 09 2f 2f 20 | 41 73 73 69 67 6e 6d 65 |);...// |Assignme|
|000019d0| 6e 74 20 6f 70 65 72 61 | 74 6f 72 0d 0d 09 76 69 |nt opera|tor...vi|
|000019e0| 72 74 75 61 6c 20 76 6f | 69 64 20 44 6f 41 70 70 |rtual vo|id DoApp|
|000019f0| 6c 65 45 76 65 6e 74 28 | 63 6f 6e 73 74 20 41 70 |leEvent(|const Ap|
|00001a00| 70 6c 65 45 76 65 6e 74 | 26 20 6d 65 73 73 61 67 |pleEvent|& messag|
|00001a10| 65 2c 0d 09 09 09 09 09 | 09 09 20 20 41 70 70 6c |e,......|.. Appl|
|00001a20| 65 45 76 65 6e 74 26 20 | 72 65 70 6c 79 2c 0d 09 |eEvent& |reply,..|
|00001a30| 09 09 09 09 09 09 20 20 | 6c 6f 6e 67 20 72 65 66 |...... |long ref|
|00001a40| 43 6f 6e 29 3b 0d 09 09 | 2f 2f 20 4f 6e 63 65 20 |Con);...|// Once |
|00001a50| 61 6e 20 41 70 70 6c 65 | 45 76 65 6e 74 20 68 61 |an Apple|Event ha|
|00001a60| 73 20 62 65 65 6e 20 72 | 65 73 6f 6c 76 65 64 20 |s been r|esolved |
|00001a70| 74 6f 20 74 68 65 20 70 | 6f 69 6e 74 20 6f 66 20 |to the p|oint of |
|00001a80| 66 69 6e 64 69 6e 67 20 | 61 0d 09 09 2f 2f 20 73 |finding |a...// s|
|00001a90| 70 65 63 69 66 69 63 20 | 6f 62 6a 65 63 74 20 77 |pecific |object w|
|00001aa0| 68 69 63 68 20 69 73 20 | 69 74 73 20 74 61 72 67 |hich is |its targ|
|00001ab0| 65 74 2c 20 69 74 20 77 | 69 6c 6c 20 62 65 20 73 |et, it w|ill be s|
|00001ac0| 65 6e 74 20 74 68 65 0d | 09 09 2f 2f 20 44 6f 41 |ent the.|..// DoA|
|00001ad0| 70 70 6c 65 45 76 65 6e | 74 20 6d 65 73 73 61 67 |ppleEven|t messag|
|00001ae0| 65 2e 20 20 54 68 65 20 | 41 70 70 6c 65 45 76 65 |e. The |AppleEve|
|00001af0| 6e 74 20 6d 65 73 73 61 | 67 65 20 61 6e 64 20 72 |nt messa|ge and r|
|00001b00| 65 70 6c 79 20 61 72 65 | 20 69 6e 0d 09 09 2f 2f |eply are| in...//|
|00001b10| 20 74 68 65 69 72 20 72 | 65 73 70 65 63 74 69 76 | their r|espectiv|
|00001b20| 65 20 61 72 67 75 6d 65 | 6e 74 73 2c 20 61 73 20 |e argume|nts, as |
|00001b30| 69 73 20 74 68 65 20 72 | 65 66 43 6f 6e 2e 20 20 |is the r|efCon. |
|00001b40| 55 70 6f 6e 20 72 65 74 | 75 72 6e 20 66 72 6f 6d |Upon ret|urn from|
|00001b50| 0d 09 09 2f 2f 20 74 68 | 69 73 20 6d 65 74 68 6f |...// th|is metho|
|00001b60| 64 2c 20 74 68 65 20 41 | 70 70 6c 65 45 76 65 6e |d, the A|ppleEven|
|00001b70| 74 20 68 61 6e 64 6c 65 | 72 20 77 69 6c 6c 20 65 |t handle|r will e|
|00001b80| 78 69 74 20 28 74 68 69 | 73 20 6d 65 74 68 6f 64 |xit (thi|s method|
|00001b90| 20 69 73 0d 09 09 2f 2f | 20 63 61 6c 6c 65 64 20 | is...//| called |
|00001ba0| 66 72 6f 6d 20 77 69 74 | 68 69 6e 20 74 68 65 20 |from wit|hin the |
|00001bb0| 68 61 6e 64 6c 65 72 20 | 69 74 73 65 6c 66 29 20 |handler |itself) |
|00001bc0| 6e 6f 72 6d 61 6c 6c 79 | 2e 20 20 49 66 20 61 6e |normally|. If an|
|00001bd0| 20 65 72 72 6f 72 0d 09 | 09 2f 2f 20 6f 63 63 75 | error..|.// occu|
|00001be0| 72 73 2c 20 74 68 72 6f | 77 20 61 20 66 61 69 6c |rs, thro|w a fail|
|00001bf0| 75 72 65 2e 20 20 54 68 | 65 20 66 61 69 6c 75 72 |ure. Th|e failur|
|00001c00| 65 20 65 72 72 6f 72 20 | 77 69 6c 6c 20 62 65 20 |e error |will be |
|00001c10| 63 61 75 67 68 74 20 61 | 6e 64 0d 09 09 2f 2f 20 |caught a|nd...// |
|00001c20| 72 65 74 75 72 6e 65 64 | 20 61 73 20 61 70 70 72 |returned| as appr|
|00001c30| 6f 70 72 69 61 74 65 2e | 0d 0d 09 76 69 72 74 75 |opriate.|...virtu|
|00001c40| 61 6c 20 44 65 73 63 54 | 79 70 65 20 47 65 74 41 |al DescT|ype GetA|
|00001c50| 70 70 6c 65 43 6c 61 73 | 73 28 29 20 63 6f 6e 73 |ppleClas|s() cons|
|00001c60| 74 20 3d 20 30 3b 0d 09 | 09 2f 2f 20 45 61 63 68 |t = 0;..|.// Each|
|00001c70| 20 69 6e 73 74 61 6e 63 | 65 20 6d 75 73 74 20 62 | instanc|e must b|
|00001c80| 65 20 61 62 6c 65 20 74 | 6f 20 69 6e 66 6f 72 6d |e able t|o inform|
|00001c90| 20 74 68 65 20 66 72 61 | 6d 65 77 6f 72 6b 20 77 | the fra|mework w|
|00001ca0| 68 61 74 20 74 79 70 65 | 20 6f 66 0d 09 09 2f 2f |hat type| of...//|
|00001cb0| 20 41 70 70 6c 65 45 76 | 65 6e 74 20 6f 62 6a 65 | AppleEv|ent obje|
|00001cc0| 63 74 20 69 74 20 69 73 | 2e 20 20 47 65 74 41 70 |ct it is|. GetAp|
|00001cd0| 70 6c 65 43 6c 61 73 73 | 20 6d 75 73 74 20 72 65 |pleClass| must re|
|00001ce0| 74 75 72 6e 20 74 68 65 | 20 61 70 70 72 6f 70 72 |turn the| appropr|
|00001cf0| 69 61 74 65 0d 09 09 2f | 2f 20 44 65 73 63 54 79 |iate.../|/ DescTy|
|00001d00| 70 65 20 66 6f 72 20 74 | 68 65 20 6f 62 6a 65 63 |pe for t|he objec|
|00001d10| 74 2e 0d 0d 09 76 69 72 | 74 75 61 6c 20 6c 6f 6e |t....vir|tual lon|
|00001d20| 67 20 43 6f 75 6e 74 43 | 6f 6e 74 61 69 6e 65 64 |g CountC|ontained|
|00001d30| 4f 62 6a 65 63 74 73 28 | 44 65 73 63 54 79 70 65 |Objects(|DescType|
|00001d40| 20 6f 66 54 79 70 65 29 | 3b 0d 09 09 2f 2f 20 45 | ofType)|;...// E|
|00001d50| 61 63 68 20 41 70 70 6c | 65 4f 62 6a 65 63 74 20 |ach Appl|eObject |
|00001d60| 6d 75 73 74 20 62 65 20 | 61 62 6c 65 20 74 6f 20 |must be |able to |
|00001d70| 72 65 74 75 72 6e 20 61 | 20 63 6f 75 6e 74 20 6f |return a| count o|
|00001d80| 66 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 0d |f the nu|mber of.|
|00001d90| 09 09 2f 2f 20 41 70 70 | 6c 65 45 76 65 6e 74 20 |..// App|leEvent |
|00001da0| 6f 62 6a 65 63 74 73 20 | 63 6f 6e 74 61 69 6e 65 |objects |containe|
|00001db0| 64 20 77 69 74 68 69 6e | 20 69 74 2e 20 20 54 68 |d within| it. Th|
|00001dc0| 65 20 64 65 73 69 72 65 | 64 54 79 70 65 20 70 61 |e desire|dType pa|
|00001dd0| 72 61 6d 65 74 65 72 0d | 09 09 2f 2f 20 69 6e 66 |rameter.|..// inf|
|00001de0| 6f 72 6d 73 20 74 68 65 | 20 6f 62 6a 65 63 74 20 |orms the| object |
|00001df0| 77 68 61 74 20 74 79 70 | 65 73 20 6f 66 20 6f 62 |what typ|es of ob|
|00001e00| 6a 65 63 74 73 20 69 74 | 20 73 68 6f 75 6c 64 20 |jects it| should |
|00001e10| 63 6f 75 6e 74 2e 20 20 | 41 6c 6c 20 76 61 6c 75 |count. |All valu|
|00001e20| 65 73 0d 09 09 2f 2f 20 | 72 65 74 75 72 6e 65 64 |es...// |returned|
|00001e30| 20 66 72 6f 6d 20 74 68 | 69 73 20 6d 65 74 68 6f | from th|is metho|
|00001e40| 64 20 77 69 6c 6c 20 62 | 65 20 63 6f 6e 73 69 64 |d will b|e consid|
|00001e50| 65 72 65 64 20 76 61 6c | 69 64 20 66 72 6f 6d 20 |ered val|id from |
|00001e60| 74 68 65 20 66 72 61 6d | 65 77 6f 72 6b 2e 0d 09 |the fram|ework...|
|00001e70| 09 2f 2f 20 54 68 72 6f | 77 20 61 20 66 61 69 6c |.// Thro|w a fail|
|00001e80| 75 72 65 20 69 66 20 61 | 6e 20 65 78 63 65 70 74 |ure if a|n except|
|00001e90| 69 6f 6e 20 6f 63 63 75 | 72 73 2e 0d 0d 09 76 69 |ion occu|rs....vi|
|00001ea0| 72 74 75 61 6c 20 42 6f | 6f 6c 65 61 6e 20 43 6f |rtual Bo|olean Co|
|00001eb0| 6d 70 61 72 65 41 70 70 | 6c 65 4f 62 6a 65 63 74 |mpareApp|leObject|
|00001ec0| 73 28 44 65 73 63 54 79 | 70 65 20 6f 70 65 72 61 |s(DescTy|pe opera|
|00001ed0| 74 69 6f 6e 2c 0d 09 09 | 09 09 09 09 09 09 09 20 |tion,...|....... |
|00001ee0| 20 20 20 63 6f 6e 73 74 | 20 4d 41 70 70 6c 65 4f | const| MAppleO|
|00001ef0| 62 6a 65 63 74 26 20 74 | 6f 57 68 61 74 29 3b 0d |bject& t|oWhat);.|
|00001f00| 09 09 2f 2f 20 47 69 76 | 65 6e 20 61 6e 20 6f 62 |..// Giv|en an ob|
|00001f10| 6a 65 63 74 20 61 6e 64 | 20 61 20 63 6f 6d 70 61 |ject and| a compa|
|00001f20| 72 69 73 6f 6e 20 6f 70 | 65 72 61 74 69 6f 6e 20 |rison op|eration |
|00001f30| 74 6f 20 70 65 72 66 6f | 72 6d 2c 20 74 68 69 73 |to perfo|rm, this|
|00001f40| 0d 09 09 2f 2f 20 6d 65 | 74 68 6f 64 20 6d 75 73 |...// me|thod mus|
|00001f50| 74 20 62 65 20 6f 76 65 | 72 72 69 64 64 65 6e 20 |t be ove|rridden |
|00001f60| 74 6f 20 72 65 74 75 72 | 6e 20 61 20 42 6f 6f 6c |to retur|n a Bool|
|00001f70| 65 61 6e 20 76 61 6c 75 | 65 20 69 6e 64 69 63 61 |ean valu|e indica|
|00001f80| 74 69 6e 67 0d 09 09 2f | 2f 20 77 68 65 74 68 65 |ting.../|/ whethe|
|00001f90| 72 20 74 68 65 20 63 6f | 6d 70 61 72 69 73 6f 6e |r the co|mparison|
|00001fa0| 20 69 73 20 61 20 74 72 | 75 65 20 63 6f 6d 70 61 | is a tr|ue compa|
|00001fb0| 72 69 73 6f 6e 20 6f 72 | 20 61 20 66 61 6c 73 65 |rison or| a false|
|00001fc0| 20 63 6f 6d 70 61 72 69 | 73 6f 6e 0d 09 09 2f 2f | compari|son...//|
|00001fd0| 20 28 65 2e 67 2e 20 31 | 20 3e 20 32 20 69 73 20 | (e.g. 1| > 2 is |
|00001fe0| 61 20 66 61 6c 73 65 20 | 63 6f 6d 70 61 72 69 73 |a false |comparis|
|00001ff0| 6f 6e 29 2e 20 20 54 68 | 65 20 73 65 6d 61 6e 74 |on). Th|e semant|
|00002000| 69 63 73 20 66 6f 72 20 | 74 68 69 73 0d 09 09 2f |ics for |this.../|
|00002010| 2f 20 63 6f 6d 70 61 72 | 69 73 6f 6e 20 61 72 65 |/ compar|ison are|
|00002020| 20 3c 74 68 69 73 3e 20 | 3c 6f 70 65 72 61 74 69 | <this> |<operati|
|00002030| 6f 6e 3e 20 3c 74 6f 57 | 68 61 74 3e 2e 20 20 54 |on> <toW|hat>. T|
|00002040| 68 69 73 20 6f 72 64 65 | 72 69 6e 67 20 77 69 6c |his orde|ring wil|
|00002050| 6c 0d 09 09 2f 2f 20 62 | 65 20 69 6d 70 6f 72 74 |l...// b|e import|
|00002060| 61 6e 74 20 66 6f 72 20 | 63 6f 6d 70 61 72 69 73 |ant for |comparis|
|00002070| 6f 6e 73 20 74 68 61 74 | 20 61 72 65 20 6e 6f 74 |ons that| are not|
|00002080| 20 63 6f 6d 6d 75 74 61 | 74 69 76 65 20 28 65 2e | commuta|tive (e.|
|00002090| 67 2e 20 6c 65 73 73 0d | 09 09 2f 2f 20 74 68 61 |g. less.|..// tha|
|000020a0| 6e 2c 20 67 72 65 61 74 | 65 72 20 74 68 61 6e 2c |n, great|er than,|
|000020b0| 20 65 71 75 61 6c 20 74 | 6f 2e 20 20 54 6f 20 63 | equal t|o. To c|
|000020c0| 75 74 20 64 6f 77 6e 20 | 6f 6e 20 74 68 65 20 61 |ut down |on the a|
|000020d0| 6d 6f 75 6e 74 20 6f 66 | 20 63 6f 64 65 20 79 6f |mount of| code yo|
|000020e0| 75 0d 09 09 2f 2f 20 77 | 69 73 68 20 74 6f 20 77 |u...// w|ish to w|
|000020f0| 72 69 74 65 2c 20 79 6f | 75 20 6d 61 79 20 77 69 |rite, yo|u may wi|
|00002100| 73 68 20 74 6f 20 75 73 | 65 20 61 20 73 75 62 63 |sh to us|e a subc|
|00002110| 6c 61 73 73 20 6f 66 20 | 4d 41 70 70 6c 65 4f 62 |lass of |MAppleOb|
|00002120| 6a 65 63 74 20 6f 66 20 | 79 6f 75 72 0d 09 09 2f |ject of |your.../|
|00002130| 2f 20 6f 77 6e 2c 20 73 | 61 79 20 4d 4d 79 41 70 |/ own, s|ay MMyAp|
|00002140| 70 6c 65 4f 62 6a 65 63 | 74 2c 20 77 68 65 72 65 |pleObjec|t, where|
|00002150| 20 79 6f 75 20 6f 76 65 | 72 72 69 64 65 20 43 6f | you ove|rride Co|
|00002160| 6d 70 61 72 65 41 70 70 | 6c 65 4f 62 6a 65 63 74 |mpareApp|leObject|
|00002170| 73 20 74 6f 0d 09 09 2f | 2f 20 63 61 74 63 68 20 |s to.../|/ catch |
|00002180| 74 68 65 20 6c 65 73 73 | 20 74 68 61 6e 2c 20 67 |the less| than, g|
|00002190| 72 65 61 74 65 72 20 74 | 68 61 6e 2c 20 65 71 75 |reater t|han, equ|
|000021a0| 61 6c 20 74 6f 2c 20 62 | 65 66 6f 72 65 2c 20 61 |al to, b|efore, a|
|000021b0| 66 74 65 72 20 61 6e 64 | 20 6f 74 68 65 72 0d 09 |fter and| other..|
|000021c0| 09 2f 2f 20 67 65 6e 65 | 72 69 63 20 6f 72 64 65 |.// gene|ric orde|
|000021d0| 72 69 6e 67 20 6f 70 65 | 72 61 74 69 6f 6e 73 2e |ring ope|rations.|
|000021e0| 20 20 4d 4d 79 41 70 70 | 6c 65 4f 62 6a 65 63 74 | MMyApp|leObject|
|000021f0| 20 77 6f 75 6c 64 20 74 | 68 65 6e 20 64 65 66 69 | would t|hen defi|
|00002200| 6e 65 20 61 6e 6f 74 68 | 65 72 0d 09 09 2f 2f 20 |ne anoth|er...// |
|00002210| 70 75 72 65 20 76 69 72 | 74 75 61 6c 20 66 75 6e |pure vir|tual fun|
|00002220| 63 74 69 6f 6e 20 74 68 | 61 74 20 72 65 74 75 72 |ction th|at retur|
|00002230| 6e 65 64 20 61 6e 20 65 | 6e 75 6d 20 69 6e 64 69 |ned an e|num indi|
|00002240| 63 61 74 65 64 20 77 68 | 65 74 65 72 20 74 68 65 |cated wh|eter the|
|00002250| 0d 09 09 2f 2f 20 74 77 | 6f 20 6f 62 6a 65 63 74 |...// tw|o object|
|00002260| 73 20 6f 72 64 65 72 69 | 6e 67 20 70 6f 73 69 74 |s orderi|ng posit|
|00002270| 69 6f 6e 73 20 28 61 6c | 61 20 74 68 65 20 43 20 |ions (al|a the C |
|00002280| 6c 69 62 72 61 72 79 20 | 72 6f 75 74 69 6e 65 20 |library |routine |
|00002290| 73 74 72 63 6d 70 29 2e | 0d 09 09 2f 2f 20 53 75 |strcmp).|...// Su|
|000022a0| 63 68 20 61 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |ch a fun|ction is|
|000022b0| 20 6c 65 66 74 20 61 73 | 20 61 6e 20 65 78 65 72 | left as| an exer|
|000022c0| 63 69 73 65 20 66 6f 72 | 20 74 68 65 20 72 65 61 |cise for| the rea|
|000022d0| 64 65 72 2e 0d 0d 09 76 | 69 72 74 75 61 6c 20 4d |der....v|irtual M|
|000022e0| 41 70 70 6c 65 4f 62 6a | 65 63 74 2a 20 47 65 74 |AppleObj|ect* Get|
|000022f0| 43 6f 6e 74 61 69 6e 65 | 64 4f 62 6a 65 63 74 28 |Containe|dObject(|
|00002300| 44 65 73 63 54 79 70 65 | 20 64 65 73 69 72 65 64 |DescType| desired|
|00002310| 54 79 70 65 2c 0d 09 09 | 09 09 09 09 09 09 09 09 |Type,...|........|
|00002320| 09 20 44 65 73 63 54 79 | 70 65 20 6b 65 79 46 6f |. DescTy|pe keyFo|
|00002330| 72 6d 2c 0d 09 09 09 09 | 09 09 09 09 09 09 09 20 |rm,.....|....... |
|00002340| 63 6f 6e 73 74 20 41 45 | 44 65 73 63 26 20 6b 65 |const AE|Desc& ke|
|00002350| 79 44 61 74 61 2c 0d 09 | 09 09 09 09 09 09 09 09 |yData,..|........|
|00002360| 09 09 20 42 6f 6f 6c 65 | 61 6e 26 20 6e 65 65 64 |.. Boole|an& need|
|00002370| 44 69 73 70 6f 73 61 6c | 29 3b 0d 09 09 2f 2f 20 |Disposal|);...// |
|00002380| 41 6e 20 41 70 70 6c 65 | 4f 62 6a 65 63 74 20 6d |An Apple|Object m|
|00002390| 75 73 74 20 62 65 20 61 | 62 6c 65 20 74 6f 20 72 |ust be a|ble to r|
|000023a0| 65 74 75 72 6e 20 6f 62 | 6a 65 63 74 73 20 63 6f |eturn ob|jects co|
|000023b0| 6e 74 61 69 6e 65 64 20 | 77 69 74 68 69 6e 20 69 |ntained |within i|
|000023c0| 74 2e 0d 09 09 2f 2f 20 | 54 68 65 20 64 65 73 69 |t....// |The desi|
|000023d0| 72 65 64 54 79 70 65 2c | 20 6b 65 79 46 6f 72 6d |redType,| keyForm|
|000023e0| 2c 20 61 6e 64 20 6b 65 | 79 44 61 74 61 20 61 72 |, and ke|yData ar|
|000023f0| 67 75 6d 65 6e 74 73 20 | 69 6e 64 69 63 61 74 65 |guments |indicate|
|00002400| 20 74 6f 20 74 68 65 0d | 09 09 2f 2f 20 6d 65 74 | to the.|..// met|
|00002410| 68 6f 64 20 77 68 69 63 | 68 20 6b 69 6e 64 20 6f |hod whic|h kind o|
|00002420| 66 20 6f 62 6a 65 63 74 | 20 69 73 20 64 65 73 69 |f object| is desi|
|00002430| 72 65 64 2e 20 20 54 68 | 65 20 72 65 71 75 65 73 |red. Th|e reques|
|00002440| 74 65 64 20 6f 62 6a 65 | 63 74 20 69 73 0d 09 09 |ted obje|ct is...|
|00002450| 2f 2f 20 72 65 74 75 72 | 6e 65 64 20 61 73 20 74 |// retur|ned as t|
|00002460| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 72 65 73 75 |he funct|ion resu|
|00002470| 6c 74 2e 0d 09 09 2f 2f | 0d 09 09 2f 2f 20 49 66 |lt....//|...// If|
|00002480| 20 74 68 65 20 72 65 73 | 75 6c 74 69 6e 67 20 6f | the res|ulting o|
|00002490| 62 6a 65 63 74 20 77 61 | 73 20 63 72 65 61 74 65 |bject wa|s create|
|000024a0| 64 20 62 79 20 74 68 65 | 20 6d 65 74 68 6f 64 20 |d by the| method |
|000024b0| 28 69 65 3a 20 69 74 20 | 77 61 73 0d 09 09 2f 2f |(ie: it |was...//|
|000024c0| 20 d2 6c 61 7a 79 20 65 | 76 61 6c 75 61 74 65 64 | .lazy e|valuated|
|000024d0| d3 20 69 6e 74 6f 20 65 | 78 69 73 74 61 6e 63 65 |. into e|xistance|
|000024e0| 29 2c 20 20 72 65 74 75 | 72 6e 20 74 72 75 65 20 |), retu|rn true |
|000024f0| 66 6f 72 20 6e 65 65 64 | 44 69 73 70 6f 73 61 6c |for need|Disposal|
|00002500| 2e 0d 09 09 2f 2f 20 54 | 68 65 20 61 73 73 75 6d |....// T|he assum|
|00002510| 70 74 69 6f 6e 20 68 65 | 72 65 20 69 73 20 74 68 |ption he|re is th|
|00002520| 61 74 20 74 68 65 20 6f | 62 6a 65 63 74 20 73 68 |at the o|bject sh|
|00002530| 6f 75 6c 64 20 62 65 20 | 64 65 6c 65 74 65 64 20 |ould be |deleted |
|00002540| 77 68 65 6e 20 69 74 0d | 09 09 2f 2f 20 69 73 20 |when it.|..// is |
|00002550| 6e 6f 20 6c 6f 6e 67 65 | 72 20 6e 65 65 64 65 64 |no longe|r needed|
|00002560| 20 66 6f 72 20 72 65 73 | 6f 6c 75 74 69 6f 6e 20 | for res|olution |
|00002570| 6f 66 20 61 6e 20 6f 62 | 6a 65 63 74 20 73 70 65 |of an ob|ject spe|
|00002580| 63 69 66 69 65 72 2e 20 | 20 49 66 20 74 68 65 0d |cifier. | If the.|
|00002590| 09 09 2f 2f 20 72 65 73 | 75 6c 74 69 6e 67 20 6f |..// res|ulting o|
|000025a0| 62 6a 65 63 74 20 77 61 | 73 20 70 72 65 76 69 6f |bject wa|s previo|
|000025b0| 75 73 6c 79 20 69 6e 20 | 65 78 69 73 74 61 6e 63 |usly in |existanc|
|000025c0| 65 20 28 65 2e 67 2e 20 | 69 74 20 69 73 20 61 6e |e (e.g. |it is an|
|000025d0| 20 6f 62 6a 65 63 74 20 | 6f 66 0d 09 09 2f 2f 20 | object |of...// |
|000025e0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|000025f0| 20 65 6e 67 69 6e 65 2c | 20 6f 72 20 69 73 20 6f | engine,| or is o|
|00002600| 6e 65 20 6f 66 20 79 6f | 75 72 20 62 61 73 65 20 |ne of yo|ur base |
|00002610| 61 62 73 74 72 61 63 74 | 69 6f 6e 73 29 2c 20 72 |abstract|ions), r|
|00002620| 65 74 75 72 6e 0d 09 09 | 2f 2f 20 66 61 6c 73 65 |eturn...|// false|
|00002630| 20 66 6f 72 20 6e 65 65 | 64 44 69 73 70 6f 73 61 | for nee|dDisposa|
|00002640| 6c 2e 20 20 49 6e 20 74 | 68 61 74 20 63 61 73 65 |l. In t|hat case|
|00002650| 2c 20 74 68 65 20 6f 62 | 6a 65 63 74 20 77 69 6c |, the ob|ject wil|
|00002660| 6c 20 6e 6f 74 20 62 65 | 20 64 65 6c 65 74 65 64 |l not be| deleted|
|00002670| 0d 09 09 2f 2f 20 62 79 | 20 74 68 65 20 55 41 70 |...// by| the UAp|
|00002680| 70 6c 65 4f 62 6a 65 63 | 74 20 66 72 61 6d 65 77 |pleObjec|t framew|
|00002690| 6f 72 6b 20 61 6e 64 20 | 79 6f 75 20 77 69 6c 6c |ork and |you will|
|000026a0| 20 6e 65 65 64 20 74 6f | 20 6d 61 6e 61 67 65 20 | need to| manage |
|000026b0| 74 68 65 20 73 74 6f 72 | 61 67 65 0d 09 09 2f 2f |the stor|age...//|
|000026c0| 20 79 6f 75 72 73 65 6c | 66 2e 0d 09 09 2f 2f 0d | yoursel|f....//.|
|000026d0| 09 09 2f 2f 20 52 65 74 | 75 72 6e 69 6e 67 20 6e |..// Ret|urning n|
|000026e0| 69 6c 20 66 72 6f 6d 20 | 74 68 69 73 20 6d 65 74 |il from |this met|
|000026f0| 68 6f 64 20 77 69 6c 6c | 20 63 61 75 73 65 20 74 |hod will| cause t|
|00002700| 68 65 20 66 72 61 6d 65 | 77 6f 72 6b 20 74 6f 20 |he frame|work to |
|00002710| 74 68 72 6f 77 0d 09 09 | 2f 2f 20 74 68 65 20 65 |throw...|// the e|
|00002720| 72 72 41 45 4e 6f 53 75 | 63 68 4f 62 6a 65 63 74 |rrAENoSu|chObject|
|00002730| 20 28 3f 3f 3f 29 20 65 | 72 72 6f 72 2e 20 20 49 | (???) e|rror. I|
|00002740| 66 20 61 6e 6f 74 68 65 | 72 20 65 72 72 6f 72 20 |f anothe|r error |
|00002750| 69 73 20 61 70 70 72 6f | 70 72 69 61 74 65 0d 09 |is appro|priate..|
|00002760| 09 2f 2f 20 6f 72 20 6d | 6f 72 65 20 64 65 73 63 |.// or m|ore desc|
|00002770| 72 69 70 74 69 76 65 2c | 20 74 68 72 6f 77 20 74 |riptive,| throw t|
|00002780| 68 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 66 |he appro|priate f|
|00002790| 61 69 6c 75 72 65 20 62 | 65 66 6f 72 65 20 72 65 |ailure b|efore re|
|000027a0| 74 75 72 6e 69 6e 67 2e | 0d 0d 09 73 74 61 74 69 |turning.|...stati|
|000027b0| 63 20 76 6f 69 64 20 47 | 6f 74 52 65 71 75 69 72 |c void G|otRequir|
|000027c0| 65 64 50 61 72 61 6d 65 | 74 65 72 73 28 63 6f 6e |edParame|ters(con|
|000027d0| 73 74 20 41 70 70 6c 65 | 45 76 65 6e 74 26 20 74 |st Apple|Event& t|
|000027e0| 68 65 41 70 70 6c 65 45 | 76 65 6e 74 29 3b 0d 09 |heAppleE|vent);..|
|000027f0| 09 2f 2f 20 54 68 69 73 | 20 72 6f 75 74 69 6e 65 |.// This| routine|
|00002800| 20 69 73 20 68 65 72 65 | 20 66 6f 72 20 63 6f 6e | is here| for con|
|00002810| 76 65 6e 69 65 6e 63 65 | 2e 20 20 54 6f 20 64 6f |venience|. To do|
|00002820| 20 41 70 70 6c 65 45 76 | 65 6e 74 20 70 72 6f 63 | AppleEv|ent proc|
|00002830| 65 73 73 69 6e 67 0d 09 | 09 2f 2f 20 d2 72 69 67 |essing..|.// .rig|
|00002840| 68 74 d3 2c 20 79 6f 75 | 20 72 65 61 6c 6c 79 20 |ht., you| really |
|00002850| 77 61 6e 74 20 74 6f 20 | 63 68 65 63 6b 20 74 68 |want to |check th|
|00002860| 61 74 20 79 6f 75 20 68 | 61 76 65 20 65 76 65 72 |at you h|ave ever|
|00002870| 79 74 68 69 6e 67 20 74 | 68 65 0d 09 09 2f 2f 20 |ything t|he...// |
|00002880| 73 65 6e 64 65 72 20 73 | 65 6e 74 20 79 6f 75 2e |sender s|ent you.|
|00002890| 20 20 41 6c 6d 6f 73 74 | 20 65 76 65 72 79 20 67 | Almost| every g|
|000028a0| 6f 6f 64 20 41 70 70 6c | 65 45 76 65 6e 74 20 73 |ood Appl|eEvent s|
|000028b0| 61 6d 70 6c 65 20 77 69 | 6c 6c 20 68 61 76 65 20 |ample wi|ll have |
|000028c0| 74 68 69 73 0d 09 09 2f | 2f 20 72 6f 75 74 69 6e |this.../|/ routin|
|000028d0| 65 20 61 6e 64 20 77 69 | 6c 6c 20 63 61 6c 6c 20 |e and wi|ll call |
|000028e0| 69 74 20 66 72 6f 6d 20 | 77 69 74 68 69 6e 20 74 |it from |within t|
|000028f0| 68 65 20 68 61 6e 64 6c | 65 72 73 2e 20 20 53 69 |he handl|ers. Si|
|00002900| 6e 63 65 20 61 6c 6c 20 | 68 61 6e 64 6c 69 6e 67 |nce all |handling|
|00002910| 0d 09 09 2f 2f 20 69 73 | 20 64 6f 6e 65 20 66 72 |...// is| done fr|
|00002920| 6f 6d 20 77 69 74 68 69 | 6e 20 61 6e 20 4d 41 70 |om withi|n an MAp|
|00002930| 70 6c 65 4f 62 6a 65 63 | 74 20 28 3f 29 2c 20 69 |pleObjec|t (?), i|
|00002940| 74 20 6d 61 6b 65 73 20 | 73 65 6e 73 65 20 66 6f |t makes |sense fo|
|00002950| 72 20 74 68 69 73 20 74 | 6f 0d 09 09 2f 2f 20 62 |r this t|o...// b|
|00002960| 65 20 61 20 6d 65 6d 62 | 65 72 20 66 75 6e 63 74 |e a memb|er funct|
|00002970| 69 6f 6e 20 6f 66 20 4d | 41 70 70 6c 65 4f 62 6a |ion of M|AppleObj|
|00002980| 65 63 74 2e 20 20 48 6f | 77 65 76 65 72 2c 20 74 |ect. Ho|wever, t|
|00002990| 68 65 20 6d 65 6d 62 65 | 72 20 66 75 6e 63 74 69 |he membe|r functi|
|000029a0| 6f 6e 0d 09 09 2f 2f 20 | 72 65 61 6c 6c 79 20 64 |on...// |really d|
|000029b0| 6f 65 73 6e d5 74 20 6e | 65 65 64 20 61 63 63 65 |oesn.t n|eed acce|
|000029c0| 73 73 20 74 6f 20 74 68 | 65 20 6f 62 6a 65 63 74 |ss to th|e object|
|000029d0| 20 69 74 73 65 6c 66 2c | 20 73 6f 20 69 74 20 69 | itself,| so it i|
|000029e0| 73 20 73 74 61 74 69 63 | 0d 09 09 2f 2f 20 28 69 |s static|...// (i|
|000029f0| 65 3a 20 69 74 20 63 61 | 6e 20 62 65 20 63 61 6c |e: it ca|n be cal|
|00002a00| 6c 65 64 20 66 72 6f 6d | 20 61 6e 79 77 68 65 72 |led from| anywher|
|00002a10| 65 29 2e 0d 0d 09 73 74 | 61 74 69 63 20 76 6f 69 |e)....st|atic voi|
|00002a20| 64 20 49 6e 69 74 41 70 | 70 6c 65 4f 62 6a 65 63 |d InitAp|pleObjec|
|00002a30| 74 28 54 41 70 70 6c 65 | 4f 62 6a 65 63 74 44 69 |t(TApple|ObjectDi|
|00002a40| 73 70 61 74 63 68 65 72 | 2a 20 64 69 73 70 61 74 |spatcher|* dispat|
|00002a50| 63 68 65 72 20 3d 20 6e | 69 6c 29 3b 0d 09 09 2f |cher = n|il);.../|
|00002a60| 2f 20 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |/ This f|unction |
|00002a70| 73 68 6f 75 6c 64 20 62 | 65 20 63 61 6c 6c 65 64 |should b|e called|
|00002a80| 20 65 78 61 63 74 6c 79 | 20 6f 6e 63 65 2e 20 20 | exactly| once. |
|00002a90| 49 74 20 73 68 6f 75 6c | 64 20 62 65 20 63 61 6c |It shoul|d be cal|
|00002aa0| 6c 65 64 0d 09 09 2f 2f | 20 61 66 74 65 72 20 69 |led...//| after i|
|00002ab0| 6e 69 74 69 61 6c 69 7a | 69 6e 67 20 74 68 65 20 |nitializ|ing the |
|00002ac0| 74 6f 6f 6c 62 6f 78 20 | 61 6e 64 20 62 65 66 6f |toolbox |and befo|
|00002ad0| 72 65 20 65 6e 74 65 72 | 69 6e 67 20 79 6f 75 72 |re enter|ing your|
|00002ae0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e d5 73 0d 09 | applica|tion.s..|
|00002af0| 09 2f 2f 20 6d 61 69 6e | 20 65 76 65 6e 74 20 6c |.// main| event l|
|00002b00| 6f 6f 70 2e 20 20 49 6e | 69 74 41 70 70 6c 65 4f |oop. In|itAppleO|
|00002b10| 62 6a 65 63 74 20 69 6e | 69 74 69 61 6c 69 7a 65 |bject in|itialize|
|00002b20| 73 20 74 68 65 20 74 6f | 6f 6c 62 6f 78 20 41 70 |s the to|olbox Ap|
|00002b30| 70 6c 65 45 76 65 6e 74 | 0d 09 09 2f 2f 20 6d 61 |pleEvent|...// ma|
|00002b40| 6e 61 67 65 72 20 74 6f | 20 72 65 63 6f 67 6e 69 |nager to| recogni|
|00002b50| 7a 65 20 74 68 65 20 75 | 6e 69 74 20 70 72 6f 63 |ze the u|nit proc|
|00002b60| 65 64 75 72 65 73 2e 0d | 0d 09 73 74 61 74 69 63 |edures..|..static|
|00002b70| 20 76 6f 69 64 20 53 65 | 74 44 65 66 61 75 6c 74 | void Se|tDefault|
|00002b80| 41 70 70 6c 65 4f 62 6a | 65 63 74 28 4d 41 70 70 |AppleObj|ect(MApp|
|00002b90| 6c 65 4f 62 6a 65 63 74 | 2a 20 64 65 66 61 75 6c |leObject|* defaul|
|00002ba0| 74 4f 62 6a 65 63 74 29 | 3b 0d 09 73 74 61 74 69 |tObject)|;..stati|
|00002bb0| 63 20 4d 41 70 70 6c 65 | 4f 62 6a 65 63 74 2a 20 |c MApple|Object* |
|00002bc0| 47 65 74 44 65 66 61 75 | 6c 74 41 70 70 6c 65 4f |GetDefau|ltAppleO|
|00002bd0| 62 6a 65 63 74 28 29 3b | 0d 70 72 69 76 61 74 65 |bject();|.private|
|00002be0| 3a 0d 09 73 74 61 74 69 | 63 20 4d 41 70 70 6c 65 |:..stati|c MApple|
|00002bf0| 4f 62 6a 65 63 74 2a 09 | 66 67 44 65 66 61 75 6c |Object*.|fgDefaul|
|00002c00| 74 41 70 70 6c 65 4f 62 | 6a 65 63 74 3b 0d 0d 09 |tAppleOb|ject;...|
|00002c10| 73 74 61 74 69 63 20 42 | 6f 6f 6c 65 61 6e 20 66 |static B|oolean f|
|00002c20| 67 49 6e 69 74 65 64 3b | 0d 09 09 2f 2f 20 55 73 |gInited;|...// Us|
|00002c30| 65 64 20 74 6f 20 65 6e | 73 75 72 65 20 74 68 61 |ed to en|sure tha|
|00002c40| 74 20 74 68 65 20 75 6e | 69 74 20 69 73 20 6f 6e |t the un|it is on|
|00002c50| 6c 79 20 64 65 62 75 67 | 67 65 64 20 6f 6e 63 65 |ly debug|ged once|
|00002c60| 2e 0d 7d 3b 0d 0d 0d 69 | 6e 6c 69 6e 65 20 54 41 |..};...i|nline TA|
|00002c70| 70 70 6c 65 4f 62 6a 65 | 63 74 44 69 73 70 61 74 |ppleObje|ctDispat|
|00002c80| 63 68 65 72 2a 20 54 41 | 70 70 6c 65 4f 62 6a 65 |cher* TA|ppleObje|
|00002c90| 63 74 44 69 73 70 61 74 | 63 68 65 72 3a 3a 47 65 |ctDispat|cher::Ge|
|00002ca0| 74 44 69 73 70 61 74 63 | 68 65 72 28 29 0d 7b 0d |tDispatc|her().{.|
|00002cb0| 09 72 65 74 75 72 6e 20 | 66 67 44 69 73 70 61 74 |.return |fgDispat|
|00002cc0| 63 68 65 72 3b 0d 7d 0d | 0d 0d 69 6e 6c 69 6e 65 |cher;.}.|..inline|
|00002cd0| 20 4d 41 70 70 6c 65 4f | 62 6a 65 63 74 2a 20 4d | MAppleO|bject* M|
|00002ce0| 41 70 70 6c 65 4f 62 6a | 65 63 74 3a 3a 47 65 74 |AppleObj|ect::Get|
|00002cf0| 44 65 66 61 75 6c 74 41 | 70 70 6c 65 4f 62 6a 65 |DefaultA|ppleObje|
|00002d00| 63 74 28 29 0d 7b 0d 09 | 72 65 74 75 72 6e 20 66 |ct().{..|return f|
|00002d10| 67 44 65 66 61 75 6c 74 | 41 70 70 6c 65 4f 62 6a |gDefault|AppleObj|
|00002d20| 65 63 74 3b 0d 7d 0d 0d | 0d 23 65 6e 64 69 66 00 |ect;.}..|.#endif.|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00002d90| 65 78 70 72 65 73 73 69 | 6f 6e 29 0d 09 09 09 53 |expressi|on)....S|
|00002da0| 65 74 20 53 65 61 72 63 | 68 54 79 70 65 20 30 0d |et Searc|hType 0.|
|00002db0| 0e 55 41 70 70 6c 65 4f | 62 6a 65 63 74 2e 68 55 |.UAppleO|bject.hU|
|00002dc0| 02 00 00 00 54 45 58 54 | 4d 50 53 20 01 00 01 04 |....TEXT|MPS ....|
|00002dd0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 01 04 01 40 |..TEXTMP|S .....@|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 a6 39 4a 2d 00 00 | 2c af 00 00 01 ac 62 20 |...9J-..|,.....b |
|00002e00| 34 0d 09 09 09 45 78 70 | 6f 72 74 20 54 61 62 0d |4....Exp|ort Tab.|
|00002e10| 0d 23 09 7b 46 6f 6e 74 | 7d 20 2d 20 44 65 66 61 |.#.{Font|} - Defa|
|00002e20| 75 6c 74 20 46 6f 6e 74 | 20 66 6f 72 20 6e 65 77 |ult Font| for new|
|00002e30| 20 77 69 6e 64 6f 77 73 | 2e 0d 09 09 09 53 65 74 | windows|.....Set|
|00002e40| 20 46 6f 6e 74 20 4d 6f | 6e 61 63 6f 0d 09 09 09 | Font Mo|naco....|
|00002e50| 45 78 70 6f 72 74 20 46 | 6f 6e 74 0d 0d 23 09 7b |Export F|ont..#.{|
|00002e60| 46 6f 6e 74 53 69 7a 65 | 7d 20 2d 20 44 65 66 61 |FontSize|} - Defa|
|00002e70| 75 6c 74 20 66 6f 6e 74 | 20 73 69 7a 65 20 66 6f |ult font| size fo|
|00002e80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 32 20 45 |...H..Mo|naco.2 E|
|00002e90| 72 69 63 20 4d 2e 20 42 | 65 72 64 61 68 6c 0d 09 |ric M. B|erdahl..|
|00002ea0| 41 6c 6c 20 72 69 00 06 | 00 04 00 2a 00 03 01 dd |All ri..|...*....|
|00002eb0| 02 7d 00 3d 00 24 01 73 | 02 3d a6 59 81 d0 00 00 |.}.=.$.s|.=.Y....|
|00002ec0| 13 96 00 00 13 96 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|00002ed0| 00 2a 00 03 01 dd 02 7d | 00 3d 00 24 01 73 02 3d |.*.....}|.=.$.s.=|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 3f |.....n..|.n...>.?|
|00002f00| 56 b8 09 ec 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |V.......|.>..MPSR|
|00002f10| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 03 f0 ff ff 00 00 00 4c | 00 45 57 6c 00 00 00 00 |.......L|.EWl....|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+